#include "bsp_uart.h"
#include "bsp_ads8320.h"
#include "bsp_74hc154.h"
#include "bsp_74hc138.h"
#include "bsp_time.h"
#include "bsp_gpio.h"
#include "task.h"
#include "bsp_wdt.h"


uint32_t read_vdat = 0;//读取到的数据
uint32_t read_idat = 0;//读取到的数据
uint8_t reaf_flag = 0;
uint8_t addr = 1;

uint32_t con = 0;
int main(void)
{
	bsp_74hc138_init();			//初始化138用到的端口
	bsp_74hc154_init();			//初始化154用到的端口
//	timer0_init(0);				//初始化一个定时器
	bsp_gpio_init();			//初始化其他的GPIO
	bsp_ads8320_init();			//初始化用到的8320端口
	bsp_uart1_init(115200);		//初始化串口
	timer1_init(0);
	Wdt_config();
	while(1)
	{
		feed_wdt();
		uart_task();
//		con++;
	}
}
